Relax the test for ar/linker with plugins
authorAlex Crichton <alex@alexcrichton.com>
Wed, 29 Apr 2015 18:30:20 +0000 (11:30 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 29 Apr 2015 18:31:34 +0000 (11:31 -0700)
On windows it won't actually succeed or get past the first compile with cc/ar,
so just set it to something that for sure won't exist so it doesn't progress on
*any* platform.

tests/test_cargo_compile_plugins.rs

index e5c4e979a3cdc005f15905fb4e4213c4ff0a7f92..3417d01e60efe5bb829bea71d7c02e7071c402b8 100644 (file)
@@ -254,16 +254,14 @@ test!(native_plugin_dependency_with_custom_ar_linker {
         .file("src/lib", "")
         .file(".cargo/config", &format!(r#"
             [target.{}]
-            ar = "ar"
-            linker = "cc"
+            ar = "nonexistent-ar"
+            linker = "nonexistent-linker"
         "#, target));
 
     foo.build();
     assert_that(bar.cargo_process("build").arg("--verbose"),
-    execs().with_stdout(&format!("\
+                execs().with_stdout(&format!("\
 {compiling} foo v0.0.1 ({url})
-{running} `rustc [..] -C ar=ar -C linker=cc [..]`
-{compiling} bar v0.0.1 ({url})
-{running} `rustc [..] -C ar=ar -C linker=cc [..]`
+{running} `rustc [..] -C ar=nonexistent-ar -C linker=nonexistent-linker [..]`
 ", compiling = COMPILING, running = RUNNING, url = bar.url())))
 });